/**
 * Created by lx on 2017/3/10.
 */
angular.module('module.circulation',[
])
    .config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
        $stateProvider
            //��ҳ
            .state('botMenu.circulation', {
                url: '/circulation',
                templateUrl: 'view/advertisement/circulation.html',
                controller: 'CirculationController'
            })
    }])

    .controller('CirculationController',['$scope','$state', 'advertisementService',function($scope, $state,advertisementService){
        $scope.cir = {};
            $scope.sureput=function(){
                advertisementService.putad($scope.cir,function(success){
                    alert("成功!")
                },function(error){
                    alert("失败！")
                })
            }
    }])